import { defineStore } from 'pinia'

interface User {
  sex: string
  signsData: {
    height: number
    weight: number
    age: number
  }
}

export const userStore = defineStore('main', {
  state: (): User => ({
    sex: '',
    signsData: {
        height: 0,
        weight: 0,
        age: 0,
    },
  }),
  actions: {
    setSex(sex: string) {
      this.sex = sex
    },
    setSignsData(signsData: User['signsData']) {
      this.signsData = signsData
    }
  }
})
